<%if @comment %>
<%= form_remote_tag :url=>{:controller=>"view",:action=>"updatecomment",:id=>@comment.id},
                        :update=>"comment#{@comment.id}"%>
<table width="500" border="0" cellpadding="0"
	cellspacing="0">
	<tr>
		<td class="medgray" width="70" valign="middle"><strong>标题：</strong></td>
		<td><%=text_field 'comment','title',:value=>@comment.title, :style=>"width:300px"%></td>
	</tr>
	<tr>
		<td class="medgray" valign="middle"><strong>内容：</strong></td>
		<td><%=text_area 'comment', 'body',:value=>@comment.body, :style=>"width:430px;height:200px" %></td>
	</tr>
	<tr>
		<td class="medgray" align="right" colspan="2">(&nbsp;<%= link_to_remote "发表新的回复", :url=>{:controller=>"view", :action=>"hidecomment",:category=>@comment.category,:object_id=>@comment.obj_id},:update=>"mycomment" %>&nbsp;)
		&nbsp;<%= submit_tag "改好了",:class=>"btn_mouseout",
													:onmouseover=>"this.className='btn_mouseover'",
 													:onmouseout=>"this.className='btn_mouseout'",
 													:onmousedown=>"this.className='btn_mousedown'",
  													:onmouseup=>"this.className='btn_mouseup'"%></td>
	</tr>
</table>
<%= end_form_tag%>
<% else %>
<%= render :partial=>"index/null"%>
<% end %>
